<html>

<head>
    <title>Express</title>
    <link rel="stylesheet" href="/stylesheets/style.css">
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
</head>

<body>
    <div id="app">
        <router-view></router-view>
    </div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<!-- 引入 vue-router -->
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
<!-- 引入axios -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script>
    // 创建路由
    let routes = [{
        path: "/login",
        component: () =>
            import ("./javascripts/Login.js")
    }, {
        path: "/dashboard",
        component: () =>
            import ("./javascripts/Dashboard.js")
    }, ];
    let router = new VueRouter({
        routes
    })
    let vm = new Vue({
        el: "#app",
        router,
    })
</script>

</html>